/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sd.chat;

import java.io.Serializable;
import java.util.ArrayList;

/**
 *
 * @author Old
 */
public class UserList implements Serializable {
    
    public ArrayList<String> userNames;
    public ArrayList<Integer> userIds;

    public UserList(ArrayList<String> userNames, ArrayList<Integer> userIds) {
        this.userNames = userNames;
        this.userIds = userIds;
    }

    public UserList() {
        this.userNames = new ArrayList<String>();
        this.userIds = new ArrayList<Integer>();
    }

    public ArrayList<Integer> getUserIds() {
        return userIds;
    }

    public void setUserIds(ArrayList<Integer> userIds) {
        this.userIds = userIds;
    }

    public ArrayList<String> getUserNames() {
        return userNames;
    }

    public void setUserNames(ArrayList<String> userNames) {
        this.userNames = userNames;
    }
    
    public void addUser(String nome, int id){
        this.userNames.add(nome);
        this.userIds.add(id);
    }
    
}
